[FFmpeg-devel] [PATCH] set exact ref frame in AVMotionVector

Davinder Singh ds.mudhar at gmail.com
Fri May 6 11:54:57 CEST 2016


hi,
change the confusing "source" var to "ref" of AVMotionVector.
define two constants AV_MV_REF_FRAME_PREVIOUS and AV_MV_REF_FRAME_NEXT
all changes:
https://github.com/dsmudhar/FFmpeg/commit/33b5ad805cccd7b48a6b0d643c39e8dd26f0e98b

please confirm this:
snowdec.c
Line 96: BlockNode *bn...
...
Line 112: avmv->source = -1 - bn->ref;
i searched the code, bn->ref set was >= 0
so, i set it always prev:
avmv->ref = AV_MV_REF_FRAME_PREVIOUS;
since, in current code, "source" is checked if > 0 to be future ref, and
line 112 set it always negative.

Regards,
DSM_
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-set-exact-ref-frame-in-AVMotionVector.patch
Type: application/octet-stream
Size: 4864 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160506/62205ca5/attachment.obj>


More information about the ffmpeg-devel mailing list