Skip to content

Commit

Permalink
Take ring frame into account when demuxing.
Browse files Browse the repository at this point in the history
This fixes issue 97.

Originally committed as revision 10192 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
Kostya Shishkov committed Aug 23, 2007
1 parent 2e1ad4a commit 2b71ddd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavformat/smacker.c
Expand Up @@ -28,6 +28,7 @@
#include "bswap.h"

#define SMACKER_PAL 0x01
#define SMACKER_FLAG_RING_FRAME 0x01

enum SAudFlags {
SMK_AUD_PACKED = 0x80000000,
Expand Down Expand Up @@ -112,6 +113,8 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap)
smk->frames = get_le32(pb);
smk->pts_inc = (int32_t)get_le32(pb);
smk->flags = get_le32(pb);
if(smk->flags & SMACKER_FLAG_RING_FRAME)
smk->frames++;
for(i = 0; i < 7; i++)
smk->audio[i] = get_le32(pb);
smk->treesize = get_le32(pb);
Expand Down

0 comments on commit 2b71ddd

Please sign in to comment.