projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbac56
)
Fix 0 vs 1 porting bug from mplayer.
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 25 Sep 2010 16:54:09 +0000
(16:54 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 25 Sep 2010 16:54:09 +0000
(16:54 +0000)
Originally committed as revision 25197 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavfilter/vf_yadif.c
patch
|
blob
|
blame
|
history
diff --git
a/libavfilter/vf_yadif.c
b/libavfilter/vf_yadif.c
index
b2b2fe5
..
96cf73a
100644
(file)
--- a/
libavfilter/vf_yadif.c
+++ b/
libavfilter/vf_yadif.c
@@
-167,7
+167,7
@@
static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
static void return_frame(AVFilterContext *ctx, int is_second){
YADIFContext *yadif = ctx->priv;
AVFilterLink *link= ctx->outputs[0];
- int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first :
yadif->parity
;
+ int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first :
(yadif->parity^1)
;
if(is_second)
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |