0008-remove-amf-loop-query.patch 766 B

123456789101112131415161718192021222324252627
  1. From 1440f556234d135ce58a2ef38916c6a63b05870e Mon Sep 17 00:00:00 2001
  2. From: 21pages <sunboeasy@gmail.com>
  3. Date: Sat, 14 Dec 2024 21:39:44 +0800
  4. Subject: [PATCH] remove amf loop query
  5. Signed-off-by: 21pages <sunboeasy@gmail.com>
  6. ---
  7. libavcodec/amfenc.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c
  10. index f70f0109f6..a53a05b16b 100644
  11. --- a/libavcodec/amfenc.c
  12. +++ b/libavcodec/amfenc.c
  13. @@ -886,7 +886,7 @@ int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
  14. av_usleep(1000);
  15. }
  16. }
  17. - } while (block_and_wait);
  18. + } while (false); // already set query timeout
  19. if (res_query == AMF_EOF) {
  20. ret = AVERROR_EOF;
  21. --
  22. 2.43.0.windows.1