Skip to content
Snippets Groups Projects
Commit d123d9ab authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '8dca0877'


* commit '8dca0877':
  mpegts: Return proper error code on invalid input data

Conflicts:
	libavformat/mpegtsenc.c

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents c24be3c4 8dca0877
No related branches found
No related tags found
No related merge requests found
......@@ -1177,7 +1177,7 @@ int ff_check_h264_startcode(AVFormatContext *s, const AVStream *st, const AVPack
if (!st->nb_frames) {
av_log(s, AV_LOG_ERROR, "H.264 bitstream malformed, "
"no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)\n");
return AVERROR(EINVAL);
return AVERROR_INVALIDDATA;
}
av_log(s, AV_LOG_WARNING, "H.264 bitstream error, startcode missing\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment