mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
more data_size=0 cleanup
Originally committed as revision 3147 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
53db1cae1c
commit
e8733cc4d9
@ -163,8 +163,6 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
AVFrame * const p= (AVFrame*)&a->picture;
|
AVFrame * const p= (AVFrame*)&a->picture;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
*data_size = 0;
|
|
||||||
|
|
||||||
/* special case for last picture */
|
/* special case for last picture */
|
||||||
if (buf_size == 0) {
|
if (buf_size == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -334,7 +334,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*data_size = 0;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
*data_size = (uint8_t *)samples - (uint8_t *)data;
|
*data_size = (uint8_t *)samples - (uint8_t *)data;
|
||||||
|
Loading…
Reference in New Issue
Block a user