mirror of https://git.ffmpeg.org/ffmpeg.git
technically mp2 in pva needs AVSTREAM_PARSE_FULL
Originally committed as revision 18966 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
25178da302
commit
6125d86597
|
@ -55,7 +55,7 @@ static int pva_read_header(AVFormatContext *s, AVFormatParameters *ap) {
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
st->codec->codec_type = CODEC_TYPE_AUDIO;
|
st->codec->codec_type = CODEC_TYPE_AUDIO;
|
||||||
st->codec->codec_id = CODEC_ID_MP2;
|
st->codec->codec_id = CODEC_ID_MP2;
|
||||||
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
st->need_parsing = AVSTREAM_PARSE_FULL;
|
||||||
av_set_pts_info(st, 33, 1, 90000);
|
av_set_pts_info(st, 33, 1, 90000);
|
||||||
av_add_index_entry(st, 0, 0, 0, 0, AVINDEX_KEYFRAME);
|
av_add_index_entry(st, 0, 0, 0, 0, AVINDEX_KEYFRAME);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue