aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/unary.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-08 16:51:04 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:01:07 +0200
commit71ff9217f769b03ce3b8081ad596ed777ac24d2f (patch)
tree735f0832f7f267a82be3e261b0f943d18f266455 /libavcodec/unary.h
parentcaac9740f84681f28bc6c6bf285fd0a25dc99060 (diff)
downloadffmpeg-71ff9217f769b03ce3b8081ad596ed777ac24d2f.tar.gz
avcodec/mpegpicture: Always reset motion val buffer
Codecs call ff_find_unused_picture() to get the index of an unused picture; said picture may have buffers left from using it previously (these buffers are intentionally not unreferenced so that it might be possible to reuse them; this is mpegvideo's version of a bufferpool). They should not make any assumptions about which picture they get. Yet somehow this is not true when decoding OBMC: Returning random empty pictures (instead of the first one) leads to nondeterministic results; similarly, explicitly rezeroing the buffer before handing it over to the codec changes the outcome of the h263-obmc tests, but it makes it independent of the returned pictures. Therefore this commit does so. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/unary.h')
0 files changed, 0 insertions, 0 deletions