diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-08-11 11:06:04 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 11:06:04 +0000 |
commit | cc80caff52a3a20d2ef4285d06263e542e3ddf46 (patch) | |
tree | 2b9820513a08b21da8159ff7c704dde70c037105 /ffmpeg.c | |
parent | fd7b11d027da7cc350d867d22d4c6bbe6022d8df (diff) | |
download | ffmpeg-cc80caff52a3a20d2ef4285d06263e542e3ddf46.tar.gz |
Separate video specific BufferRef properties into VideoProps.
Define a new struct AVFilterBufferRefVideoProps and add a type field
to AVFilterBufferRef.
Video specific properties in AVFilterBufferRefVideoProps are now
referred to by *video pointer in AVFilterBufferRef.
Patch by S.N. Hemanth Meenakshisundaram smeenaks->ucsd.edu.
Originally committed as revision 24763 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -377,8 +377,8 @@ static int get_filtered_video_pic(AVFilterContext *ctx, memcpy(pic2->data, pic->data, sizeof(pic->data)); memcpy(pic2->linesize, pic->linesize, sizeof(pic->linesize)); - pic2->interlaced_frame = pic->interlaced; - pic2->top_field_first = pic->top_field_first; + pic2->interlaced_frame = pic->video->interlaced; + pic2->top_field_first = pic->video->top_field_first; return 1; } @@ -1701,7 +1701,8 @@ static int output_packet(AVInputStream *ist, int ist_index, break; case AVMEDIA_TYPE_VIDEO: #if CONFIG_AVFILTER - ost->st->codec->sample_aspect_ratio = ist->picref->pixel_aspect; + if (ist->picref->video) + ost->st->codec->sample_aspect_ratio = ist->picref->video->pixel_aspect; #endif do_video_out(os, ost, ist, &picture, &frame_size); if (vstats_filename && frame_size) |