avcodec/videotoolbox: create avcC even when h264 extradata is missing
authorAman Gupta <aman@tmm1.net>
Mon, 25 Sep 2017 23:52:35 +0000 (16:52 -0700)
committerAman Gupta <aman@tmm1.net>
Mon, 13 Nov 2017 22:32:48 +0000 (14:32 -0800)
commit403d10a8b3cd9c0c9a4a034b95a4cb5ffc4b1112
tree71220a6f9d9b3c9749c48073c49b78c069ebf8e7
parent9519983c0f39d01fd86544dc56adbbf15bdd3c3c
avcodec/videotoolbox: create avcC even when h264 extradata is missing

Removes the avctx->extradata_size requirement when creating avcC/hvcC, since
avctx->extradata is only used in the esds code path.

This fixes an issue where the VideoToolbox decoder would not work unless
avformat_find_stream_info() was called.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/videotoolbox.c