summaryrefslogtreecommitdiff
path: root/libavcodec/parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-26 17:33:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-26 17:33:45 +0000
commitadcb72b52138d832c6e524614f0c6cc43f049ff9 (patch)
tree82fb17e624ef75a7932d6abe5e4102b6a145bad6 /libavcodec/parser.c
parentd215d07ae08d0c5a29148b5dbbb40a8d9d123f0b (diff)
downloadffmpeg-adcb72b52138d832c6e524614f0c6cc43f049ff9.tar.gz
set pict_type to I type during init so parsers which dont set it get all i frames, fixes mp3 seeking
Originally committed as revision 8528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r--libavcodec/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index ab3bf8ddb3..f3e7ee3356 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -70,6 +70,7 @@ AVCodecParserContext *av_parser_init(int codec_id)
}
}
s->fetch_timestamp=1;
+ s->pict_type = FF_I_TYPE;
return s;
}