File: ffmpeg-7.0.patch

package info (click to toggle)
lynkeos.app 3.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 6,740 kB
  • sloc: objc: 40,528; ansic: 811; cpp: 150; sh: 68; makefile: 27
file content (17 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Avoid using a deprecated function.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Last-Update: 2025-03-06
---

--- lynkeos.app.orig/application/Sources/FFmpegReader.m
+++ lynkeos.app/application/Sources/FFmpegReader.m
@@ -526,7 +526,7 @@
 {
    [_mutex release];
    if ( _pCodecCtx != NULL )
-      avcodec_close(_pCodecCtx);
+      avcodec_free_context(&_pCodecCtx);
    // Deallocate the current frame only if it is not already in the cache (otherwise, the cache will free it)
    if ( _pCurrentFrame != NULL )
       av_free(_pCurrentFrame);