mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Typo: if output (video) stream's pix_fmt is not set, then the stream cannot
be ENcoded, not DEcoded. Originally committed as revision 22566 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4693b031a3
commit
562f22a699
1 changed files with 1 additions and 1 deletions
2
ffmpeg.c
2
ffmpeg.c
|
|
@ -1920,7 +1920,7 @@ static int av_encode(AVFormatContext **output_files,
|
|||
break;
|
||||
case CODEC_TYPE_VIDEO:
|
||||
if (ost->st->codec->pix_fmt == PIX_FMT_NONE) {
|
||||
fprintf(stderr, "Video pixel format is unknown, stream cannot be decoded\n");
|
||||
fprintf(stderr, "Video pixel format is unknown, stream cannot be encoded\n");
|
||||
av_exit(1);
|
||||
}
|
||||
ost->video_crop = ((frame_leftBand + frame_rightBand + frame_topBand + frame_bottomBand) != 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue