diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-08-09 03:19:42 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-01 04:31:39 +0200 |
commit | f4190a49ae2a3b17a12eaf75c1e9c3dfdae3e9e3 (patch) | |
tree | a2d881a39404033cf734aa72ba01a7ec4383b74c /libavcodec/jfdctint_template.c | |
parent | a500b975a87174f1994cf497892c2529cf42e834 (diff) | |
download | ffmpeg-f4190a49ae2a3b17a12eaf75c1e9c3dfdae3e9e3.tar.gz |
avformat/mux: Only prepare input packet if there is a packet
It is unnecessary to call prepare_input_packet if there is no packet as
it doesn't do anything, except when the currently inactive code guarded
by !FF_API_COMPUTE_PKT_FIELDS2 || !FF_API_LAVF_AVCTX becomes active:
Then attempting to access pkt->stream_index will crash.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/jfdctint_template.c')
0 files changed, 0 insertions, 0 deletions