avformat: migrate to AVFormatContext->url
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -610,10 +610,10 @@ static int shift_data(AVFormatContext *s)
|
||||
* writing, so we re-open the same output, but for reading. It also avoids
|
||||
* a read/seek/write/seek back and forth. */
|
||||
avio_flush(s->pb);
|
||||
ret = s->io_open(s, &read_pb, s->filename, AVIO_FLAG_READ, NULL);
|
||||
ret = s->io_open(s, &read_pb, s->url, AVIO_FLAG_READ, NULL);
|
||||
if (ret < 0) {
|
||||
av_log(s, AV_LOG_ERROR, "Unable to re-open %s output file for "
|
||||
"the second pass (add_keyframe_index)\n", s->filename);
|
||||
"the second pass (add_keyframe_index)\n", s->url);
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user