]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vda_h264.c
configure: Check for -no_weak_imports in ldflags on macOS
[ffmpeg] / libavcodec / vda_h264.c
index 0692f6080901bd9e1b0e6db8c84dd3c659e02479..037715da810214bed8598f9b2b2fabe6c388ba2f 100644 (file)
@@ -25,7 +25,7 @@
 #include <CoreFoundation/CFString.h>
 
 #include "libavutil/avutil.h"
-#include "h264.h"
+#include "h264dec.h"
 #include "internal.h"
 #include "vda.h"
 #include "vda_internal.h"
@@ -158,7 +158,7 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx,
     CFMutableDictionaryRef io_surface_properties;
     CFNumberRef cv_pix_fmt;
 
-    /* Each VCL NAL in the bistream sent to the decoder
+    /* Each VCL NAL in the bitstream sent to the decoder
      * is preceded by a 4 bytes length header.
      * Change the avcC atom header if needed, to signal headers of 4 bytes. */
     if (extradata_size >= 4 && (extradata[4] & 0x03) != 0x03) {
@@ -359,7 +359,7 @@ static int vda_h264_end_frame(AVCodecContext *avctx)
                                      sizeof(vda->frame),
                                      release_buffer, NULL,
                                      AV_BUFFER_FLAG_READONLY);
-    if (!frame->buf)
+    if (!frame->buf[0])
         return AVERROR(ENOMEM);
 
     frame->data[3] = (uint8_t*)vda->frame;
@@ -384,7 +384,7 @@ int ff_vda_default_init(AVCodecContext *avctx)
 
     // kCVPixelFormatType_420YpCbCr8Planar;
 
-    /* Each VCL NAL in the bistream sent to the decoder
+    /* Each VCL NAL in the bitstream sent to the decoder
      * is preceded by a 4 bytes length header.
      * Change the avcC atom header if needed, to signal headers of 4 bytes. */
     if (avctx->extradata_size >= 4 && (avctx->extradata[4] & 0x03) != 0x03) {