diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:47:05 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-07 12:03:49 +0200 |
commit | 566666caf3a09d6254edaa99d222eddb6fe2986b (patch) | |
tree | 7570c9596cfde912b168846aa5a303d828d56089 /ffplay.c | |
parent | 18ded93ab3db5996cd86fe2f5b36ba3c4bd58711 (diff) | |
download | ffmpeg-streaming-566666caf3a09d6254edaa99d222eddb6fe2986b.zip ffmpeg-streaming-566666caf3a09d6254edaa99d222eddb6fe2986b.tar.gz |
lavfi: add libavfilter/avcodec.h and avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
The added files libavfilter/avcodec.[ch] are used for containing
utilities useful for gluing togheter libavfilter and libavcodec.
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,6 +40,7 @@ #include "libavcodec/avfft.h" #if CONFIG_AVFILTER +# include "libavfilter/avcodec.h" # include "libavfilter/avfilter.h" # include "libavfilter/avfiltergraph.h" #endif @@ -1686,9 +1687,9 @@ static int input_request_frame(AVFilterLink *link) } av_free_packet(&pkt); + avfilter_copy_frame_props(picref, priv->frame); picref->pts = pts; - picref->pos = priv->frame->pkt_pos; - picref->video->sample_aspect_ratio = priv->frame->sample_aspect_ratio; + avfilter_start_frame(link, picref); avfilter_draw_slice(link, 0, link->h, 1); avfilter_end_frame(link); |