aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/sp5x.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-04-05 20:51:00 +0200
committerAnton Khirnov <anton@khirnov.net>2015-04-29 05:52:57 +0200
commita6cd154463bea7eb56d28192db4c8c6d83f67fd7 (patch)
tree34311282db3e18ec6cd7b3a3d28633b6fd323be9 /libavcodec/sp5x.h
parent9d33bab583a82cf12286c65258a29c6888e1ff98 (diff)
downloadffmpeg-a6cd154463bea7eb56d28192db4c8c6d83f67fd7.tar.gz
h264: move the DPB init/uninit to init_context()/free_context()
Currently, the DPB is initialized in alloc_tables() and uninitialized in free_tables(), but those functions manage frame size-dependent variables, so DPB management does not logically belong in there. Since we want the init/uninit to happen exactly once per the context lifetime, init_context()/free_context() are the proper place for this code.
Diffstat (limited to 'libavcodec/sp5x.h')
0 files changed, 0 insertions, 0 deletions