Advertisement
Guest User

Untitled

a guest
Jul 6th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. From ca0e542adf924b42a8502e313fa911576924978f Mon Sep 17 00:00:00 2001
  2. From: ejlasota <ejlasota@gmail.com>
  3. Date: Sun, 6 Jul 2014 15:42:43 -0400
  4. Subject: [PATCH] use JPEG color range for RoQ
  5.  
  6. Signed-off-by: ejlasota <ejlasota@gmail.com>
  7. ---
  8. libavcodec/roqvideodec.c | 2 +-
  9. libavcodec/roqvideoenc.c | 2 +-
  10. 2 files changed, 2 insertions(+), 2 deletions(-)
  11.  
  12. diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c
  13. index 322345e..413b66d 100644
  14. --- a/libavcodec/roqvideodec.c
  15. +++ b/libavcodec/roqvideodec.c
  16. @@ -189,7 +189,7 @@ static av_cold int roq_decode_init(AVCodecContext *avctx)
  17. return AVERROR(ENOMEM);
  18. }
  19.  
  20. - avctx->pix_fmt = AV_PIX_FMT_YUV444P;
  21. + avctx->pix_fmt = AV_PIX_FMT_YUVJ444P;
  22.  
  23. return 0;
  24. }
  25. diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
  26. index cae157b..df15196 100644
  27. --- a/libavcodec/roqvideoenc.c
  28. +++ b/libavcodec/roqvideoenc.c
  29. @@ -1097,7 +1097,7 @@ AVCodec ff_roq_encoder = {
  30. .init = roq_encode_init,
  31. .encode2 = roq_encode_frame,
  32. .close = roq_encode_end,
  33. - .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P,
  34. + .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P,
  35. AV_PIX_FMT_NONE },
  36. .priv_class = &roq_class,
  37. };
  38. --
  39. 1.9.4.msysgit.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement