|
105 | 105 | // Define this for compatibility |
106 | 106 | #ifndef PixelFormat |
107 | 107 | #define PixelFormat AVPixelFormat |
108 | | - #endif |
| 108 | + #endif |
109 | 109 | #ifndef PIX_FMT_RGBA |
110 | 110 | #define PIX_FMT_RGBA AV_PIX_FMT_RGBA |
111 | | - #endif |
| 111 | + #endif |
112 | 112 | #ifndef PIX_FMT_NONE |
113 | 113 | #define PIX_FMT_NONE AV_PIX_FMT_NONE |
114 | | - #endif |
| 114 | + #endif |
115 | 115 | #ifndef PIX_FMT_RGB24 |
116 | 116 | #define PIX_FMT_RGB24 AV_PIX_FMT_RGB24 |
117 | 117 | #endif |
|
154 | 154 | #define AV_ALLOCATE_FRAME() av_frame_alloc() |
155 | 155 | #define AV_ALLOCATE_IMAGE(av_frame, pix_fmt, width, height) av_image_alloc(av_frame->data, av_frame->linesize, width, height, pix_fmt, 1) |
156 | 156 | #define AV_RESET_FRAME(av_frame) av_frame_unref(av_frame) |
157 | | - #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
| 157 | + #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
158 | 158 | #define AV_FREE_PACKET(av_packet) av_packet_unref(av_packet) |
159 | 159 | #define AV_FREE_CONTEXT(av_context) avcodec_free_context(&av_context) |
160 | 160 | #define AV_GET_CODEC_TYPE(av_stream) av_stream->codecpar->codec_type |
|
190 | 190 | #define AV_ALLOCATE_FRAME() av_frame_alloc() |
191 | 191 | #define AV_ALLOCATE_IMAGE(av_frame, pix_fmt, width, height) av_image_alloc(av_frame->data, av_frame->linesize, width, height, pix_fmt, 1) |
192 | 192 | #define AV_RESET_FRAME(av_frame) av_frame_unref(av_frame) |
193 | | - #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
| 193 | + #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
194 | 194 | #define AV_FREE_PACKET(av_packet) av_packet_unref(av_packet) |
195 | 195 | #define AV_FREE_CONTEXT(av_context) avcodec_free_context(&av_context) |
196 | 196 | #define AV_GET_CODEC_TYPE(av_stream) av_stream->codecpar->codec_type |
|
229 | 229 | #define AV_ALLOCATE_FRAME() av_frame_alloc() |
230 | 230 | #define AV_ALLOCATE_IMAGE(av_frame, pix_fmt, width, height) avpicture_alloc((AVPicture *) av_frame, pix_fmt, width, height) |
231 | 231 | #define AV_RESET_FRAME(av_frame) av_frame_unref(av_frame) |
232 | | - #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
| 232 | + #define AV_FREE_FRAME(av_frame) av_frame_free(av_frame) |
233 | 233 | #define AV_FREE_PACKET(av_packet) av_packet_unref(av_packet) |
234 | 234 | #define AV_FREE_CONTEXT(av_context) avcodec_close(av_context) |
235 | 235 | #define AV_GET_CODEC_TYPE(av_stream) av_stream->codec->codec_type |
|
0 commit comments