Comment #5 on issue 415542 by
dalecur...@chromium.org: H264 Pipeline Error:
Decode Error
https://code.google.com/p/chromium/issues/detail?id=415542
Fails due to error during video decode:
[6:22:0923/132033:ERROR:ffmpeg_video_decoder.cc(282)] Error decoding video:
timestamp: 80000 duration: 80000 size: 29585 side_data_size: 0 encrypted: 0
discard_padding (ms): (0, 0)
We could ignore it and be okay, but we have a policy decision not to allow
video with "errors." That said, it looks like playback requires
CODEC_FLAG2_CHUNKS which means "Input bitstream might be truncated at a
packet boundaries instead of only at frame boundaries."
We don't want to enable this for all H264 because it theoretically slows
down decoding since FFmpeg can't use frame level threading when its set.
Probably the GPU video decoder can properly handle these type of packets.
I'll take a quick look to see if there's any flags on the format context we
can check before hand which would allow us to speculatively enable this for
content which needs it.