]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pcm.c
xl: K&R formatting cosmetics
[ffmpeg] / libavcodec / pcm.c
index 64a230ae03067c95fa9f03ae2df5266c8d0c9c11..31ee283daf52f606972667a2a1607060af17b6ae 100644 (file)
@@ -265,7 +265,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data,
 
     /* av_get_bits_per_sample returns 0 for AV_CODEC_ID_PCM_DVD */
     samples_per_block = 1;
-    if (AV_CODEC_ID_PCM_DVD == avctx->codec_id) {
+    if (avctx->codec->id == AV_CODEC_ID_PCM_DVD) {
         if (avctx->bits_per_coded_sample != 20 &&
             avctx->bits_per_coded_sample != 24) {
             av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");
@@ -299,7 +299,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data,
 
     /* get output buffer */
     frame->nb_samples = n * samples_per_block / avctx->channels;
-    if ((ret = ff_get_buffer(avctx, frame)) < 0) {
+    if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }