[FFmpeg-cvslog] flvdec: fix seeking in audio only files
    Michael Niedermayer 
    git at videolan.org
       
    Wed Apr  3 04:07:43 CEST 2013
    
    
  
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr  3 03:57:37 2013 +0200| [83e22172218af521df1101f40f6d56578c56cf56] | committer: Michael Niedermayer
flvdec: fix seeking in audio only files
Fixes Seeking with the file in Ticket2283
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=83e22172218af521df1101f40f6d56578c56cf56
---
 libavformat/flvdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 9329b48..0bb51e0 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -757,7 +757,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
         avio_seek(s->pb, next, SEEK_SET);
         continue;
     }
-    if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY)
+    if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY || stream_type == FLV_STREAM_TYPE_AUDIO)
         av_add_index_entry(st, pos, dts, size, 0, AVINDEX_KEYFRAME);
     break;
  }
    
    
More information about the ffmpeg-cvslog
mailing list