]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv10.c
set got_key_frame when packet is video, fix first video packet with index 0 and 2...
[ffmpeg] / libavcodec / rv10.c
index 4d35df5f12dec52647e5c459cc04e2877a55d381..ba8e83d1b393f3450efc4bf9318c1f8fcf4e6bb5 100644 (file)
@@ -522,7 +522,7 @@ av_log(s->avctx, AV_LOG_DEBUG, "\n");*/
     return s->mb_width*s->mb_height - mb_pos;
 }
 
-static int rv10_decode_init(AVCodecContext *avctx)
+static av_cold int rv10_decode_init(AVCodecContext *avctx)
 {
     MpegEncContext *s = avctx->priv_data;
     static int done=0;
@@ -588,7 +588,7 @@ static int rv10_decode_init(AVCodecContext *avctx)
     return 0;
 }
 
-static int rv10_decode_end(AVCodecContext *avctx)
+static av_cold int rv10_decode_end(AVCodecContext *avctx)
 {
     MpegEncContext *s = avctx->priv_data;
 
@@ -784,7 +784,8 @@ AVCodec rv10_decoder = {
     NULL,
     rv10_decode_end,
     rv10_decode_frame,
-    CODEC_CAP_DR1
+    CODEC_CAP_DR1,
+    .long_name = "RealVideo 1.0",
 };
 
 AVCodec rv20_decoder = {
@@ -798,5 +799,6 @@ AVCodec rv20_decoder = {
     rv10_decode_frame,
     CODEC_CAP_DR1 | CODEC_CAP_DELAY,
     .flush= ff_mpeg_flush,
+    .long_name = "RealVideo 2.0",
 };