Browse Source

avfilter: set w/h in avfilter_fill_frame_from_video_buffer_ref().

This fixes issues with AVFrame w/h being wrong in some cases

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
8c2045c979
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/avcodec.c

+ 2
- 0
libavfilter/avcodec.c View File

@@ -84,6 +84,8 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
frame->key_frame = picref->video->key_frame;
frame->pict_type = picref->video->pict_type;
frame->sample_aspect_ratio = picref->video->sample_aspect_ratio;
frame->width = picref->video->w;
frame->height = picref->video->h;

return 0;
}


Loading…
Cancel
Save