diff options
author | Even Wiik Thomassen <e.thomassen@sportradar.com> | 2013-12-13 09:24:18 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-13 09:45:54 +0100 |
commit | 43f116d1621aeaafdadacaf1c9ee1f662447b023 (patch) | |
tree | 1f6d9025f559419ee97da56c0dbd6e281f6ec82b /tools | |
parent | 65a3429e7ac107dc05f8c65d93cd3a5ba6652eba (diff) | |
download | ffmpeg-43f116d1621aeaafdadacaf1c9ee1f662447b023.tar.gz |
examples/demuxing_decoding: return error when no codec found
The open_codec_context function, when it fails to find a codec, now
return AVERROR(EINVAL) to signal an error.
Before it would return the stream index, which was always >= 0, and
continue as if a codec was found. This change make it fail faster,
instead of repeated failed tries to decode frames with no codec.
Signed-off-by: Even Wiik Thomassen <e.thomassen@sportradar.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions