Skip to content

Commit

Permalink
fixed: typo in lavc dummy frame fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Jul 11, 2011
1 parent e808d0d commit c1aa0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ffmpeg/libavcodec/mpegvideo.c
Expand Up @@ -1004,7 +1004,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
/* Allocate a dummy frame */
i= ff_find_unused_picture(s, 0);
s->next_picture_ptr= &s->picture[i];
s->last_picture_ptr->key_frame = 0;
s->next_picture_ptr->key_frame = 0;
if(ff_alloc_picture(s, s->next_picture_ptr, 0) < 0)
return -1;
}
Expand Down
Expand Up @@ -25,7 +25,7 @@ index c8706bc..a0acda1 100644
/* Allocate a dummy frame */
i= ff_find_unused_picture(s, 0);
s->next_picture_ptr= &s->picture[i];
+ s->last_picture_ptr->key_frame = 0;
+ s->next_picture_ptr->key_frame = 0;
if(ff_alloc_picture(s, s->next_picture_ptr, 0) < 0)
return -1;
}

0 comments on commit c1aa0af

Please sign in to comment.